<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>knet: 远程调用</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">knet
   &#160;<span id="projectnumber">1.4.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="modules.html"><span>模块</span></a></li>
      <li><a href="annotated.html"><span>类</span></a></li>
      <li><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">远程调用</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:ga6aad58d8460944596e39822181bf4848"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#ga6aad58d8460944596e39822181bf4848">krpc_object_create</a> ()</td></tr>
<tr class="separator:ga6aad58d8460944596e39822181bf4848"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8bb578f8ba5a8de682a1fe2a4c8a20f6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#ga8bb578f8ba5a8de682a1fe2a4c8a20f6">krpc_object_destroy</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *o)</td></tr>
<tr class="separator:ga8bb578f8ba5a8de682a1fe2a4c8a20f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga207aac182f9f86e96ddea230ee9c8f61"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#ga207aac182f9f86e96ddea230ee9c8f61">krpc_object_check_type</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *o, krpc_type_e type)</td></tr>
<tr class="separator:ga207aac182f9f86e96ddea230ee9c8f61"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad51ebf7392be0ee1fd9597aa22a43015"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#gad51ebf7392be0ee1fd9597aa22a43015">krpc_object_get_marshal_size</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *o)</td></tr>
<tr class="separator:gad51ebf7392be0ee1fd9597aa22a43015"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga88e197e67ba6e7dc4b6fa361db77376b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#ga88e197e67ba6e7dc4b6fa361db77376b">krpc_object_marshal</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *o, <a class="el" href="struct__stream__t.html">stream_t</a> *stream, uint16_t *bytes)</td></tr>
<tr class="separator:ga88e197e67ba6e7dc4b6fa361db77376b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga32ed12c4faa68e258582b239b46fd180"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#ga32ed12c4faa68e258582b239b46fd180">krpc_object_marshal_buffer</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *o, char *buffer, uint16_t length, uint16_t *bytes)</td></tr>
<tr class="separator:ga32ed12c4faa68e258582b239b46fd180"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaff1ec30de69047da0315283957d877ca"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#gaff1ec30de69047da0315283957d877ca">krpc_object_unmarshal</a> (<a class="el" href="struct__stream__t.html">stream_t</a> *stream, <a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> **o, uint16_t *bytes)</td></tr>
<tr class="separator:gaff1ec30de69047da0315283957d877ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0f2289e356949bc9ae0e8e0a151e42f4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#ga0f2289e356949bc9ae0e8e0a151e42f4">krpc_object_unmarshal_buffer</a> (char *buffer, uint16_t size, <a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> **o, uint16_t *bytes)</td></tr>
<tr class="separator:ga0f2289e356949bc9ae0e8e0a151e42f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac97afef390289879f19cda9149beb684"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#gac97afef390289879f19cda9149beb684">krpc_number_set_i8</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *o, int8_t i8)</td></tr>
<tr class="separator:gac97afef390289879f19cda9149beb684"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5f14e2a44d3dd64fc1bc54e28b431587"><td class="memItemLeft" align="right" valign="top">int8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#ga5f14e2a44d3dd64fc1bc54e28b431587">krpc_number_get_i8</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *o)</td></tr>
<tr class="separator:ga5f14e2a44d3dd64fc1bc54e28b431587"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1b6cbaa51e2171bec6e5b2f97fe6223c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#ga1b6cbaa51e2171bec6e5b2f97fe6223c">krpc_number_set_i16</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *o, int16_t i16)</td></tr>
<tr class="separator:ga1b6cbaa51e2171bec6e5b2f97fe6223c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga090dd58301d21979a05fe6fc249e3a80"><td class="memItemLeft" align="right" valign="top">int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#ga090dd58301d21979a05fe6fc249e3a80">krpc_number_get_i16</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *o)</td></tr>
<tr class="separator:ga090dd58301d21979a05fe6fc249e3a80"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf70d32f6fb59d76e67e596d0feeee14b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#gaf70d32f6fb59d76e67e596d0feeee14b">krpc_number_set_i32</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *o, int32_t i32)</td></tr>
<tr class="separator:gaf70d32f6fb59d76e67e596d0feeee14b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad287178bafa8b9495016ee747db8e090"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#gad287178bafa8b9495016ee747db8e090">krpc_number_get_i32</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *o)</td></tr>
<tr class="separator:gad287178bafa8b9495016ee747db8e090"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabf92e2dab46131d75789812059214724"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#gabf92e2dab46131d75789812059214724">krpc_number_set_i64</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *o, int64_t i64)</td></tr>
<tr class="separator:gabf92e2dab46131d75789812059214724"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga41bb57b2a053c9aeb22c98e0cbfbc2e4"><td class="memItemLeft" align="right" valign="top">int64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#ga41bb57b2a053c9aeb22c98e0cbfbc2e4">krpc_number_get_i64</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *o)</td></tr>
<tr class="separator:ga41bb57b2a053c9aeb22c98e0cbfbc2e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0abbc84b15e73781209485cbfa4d2a56"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#ga0abbc84b15e73781209485cbfa4d2a56">krpc_number_set_ui8</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *o, uint8_t ui8)</td></tr>
<tr class="separator:ga0abbc84b15e73781209485cbfa4d2a56"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga921ba1649bda27068e3d048b854ed708"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#ga921ba1649bda27068e3d048b854ed708">krpc_number_get_ui8</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *o)</td></tr>
<tr class="separator:ga921ba1649bda27068e3d048b854ed708"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7990cb68203c5ab0d1534ef616fd1aad"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#ga7990cb68203c5ab0d1534ef616fd1aad">krpc_number_set_ui16</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *o, uint16_t ui16)</td></tr>
<tr class="separator:ga7990cb68203c5ab0d1534ef616fd1aad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa2f3b1c450f36d181e585924ff7954a5"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#gaa2f3b1c450f36d181e585924ff7954a5">krpc_number_get_ui16</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *o)</td></tr>
<tr class="separator:gaa2f3b1c450f36d181e585924ff7954a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf864070d7b20a77c9191acbe49f9382f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#gaf864070d7b20a77c9191acbe49f9382f">krpc_number_set_ui32</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *o, uint32_t ui32)</td></tr>
<tr class="separator:gaf864070d7b20a77c9191acbe49f9382f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabc1d9560a6f2baf606c4a232488ee76a"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#gabc1d9560a6f2baf606c4a232488ee76a">krpc_number_get_ui32</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *o)</td></tr>
<tr class="separator:gabc1d9560a6f2baf606c4a232488ee76a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafd0da43f7cb46188c6d2f1657b39c3ba"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#gafd0da43f7cb46188c6d2f1657b39c3ba">krpc_number_set_ui64</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *o, int64_t ui64)</td></tr>
<tr class="separator:gafd0da43f7cb46188c6d2f1657b39c3ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga951b99916dd94a6d8c5ad335578c35d7"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#ga951b99916dd94a6d8c5ad335578c35d7">krpc_number_get_ui64</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *o)</td></tr>
<tr class="separator:ga951b99916dd94a6d8c5ad335578c35d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0e16d4b0c82cb88b148e82bc076a840c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#ga0e16d4b0c82cb88b148e82bc076a840c">krpc_number_set_f32</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *o, float32_t f32)</td></tr>
<tr class="separator:ga0e16d4b0c82cb88b148e82bc076a840c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa646cc26fc434789e5d4a58ec39a99fa"><td class="memItemLeft" align="right" valign="top">float32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#gaa646cc26fc434789e5d4a58ec39a99fa">krpc_number_get_f32</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *o)</td></tr>
<tr class="separator:gaa646cc26fc434789e5d4a58ec39a99fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8aeb77dbdf5aaab4bb75f57ee0ddd8b9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#ga8aeb77dbdf5aaab4bb75f57ee0ddd8b9">krpc_number_set_f64</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *o, float64_t f64)</td></tr>
<tr class="separator:ga8aeb77dbdf5aaab4bb75f57ee0ddd8b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga000db715b85193d0b6750b46bfc590b5"><td class="memItemLeft" align="right" valign="top">float64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#ga000db715b85193d0b6750b46bfc590b5">krpc_number_get_f64</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *o)</td></tr>
<tr class="separator:ga000db715b85193d0b6750b46bfc590b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6985230e52d14d9e6d1f0de75a7c2f93"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#ga6985230e52d14d9e6d1f0de75a7c2f93">krpc_string_set</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *o, const char *s)</td></tr>
<tr class="separator:ga6985230e52d14d9e6d1f0de75a7c2f93"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga478faec6f30727235d29aaeb8d54f22f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#ga478faec6f30727235d29aaeb8d54f22f">krpc_string_set_s</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *o, const char *s, uint16_t size)</td></tr>
<tr class="separator:ga478faec6f30727235d29aaeb8d54f22f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4cbbacb71688aa9ee2c5811076132bce"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#ga4cbbacb71688aa9ee2c5811076132bce">krpc_string_get</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *o)</td></tr>
<tr class="separator:ga4cbbacb71688aa9ee2c5811076132bce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1de7973df219a3f8d3f466d27ba8c080"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#ga1de7973df219a3f8d3f466d27ba8c080">krpc_string_get_size</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *o)</td></tr>
<tr class="separator:ga1de7973df219a3f8d3f466d27ba8c080"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac870fa910b5e155c9f566ead4fac2b54"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#gac870fa910b5e155c9f566ead4fac2b54">krpc_vector_push_back</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *v, <a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *o)</td></tr>
<tr class="separator:gac870fa910b5e155c9f566ead4fac2b54"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac86bb807e52193aaa69ce6fe36cd59c8"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#gac86bb807e52193aaa69ce6fe36cd59c8">krpc_vector_get_size</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *v)</td></tr>
<tr class="separator:gac86bb807e52193aaa69ce6fe36cd59c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0291a0548378269354fc614712f4c31e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#ga0291a0548378269354fc614712f4c31e">krpc_vector_get</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *v, int index)</td></tr>
<tr class="separator:ga0291a0548378269354fc614712f4c31e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf08956a35d983893f382974abcfca177"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#gaf08956a35d983893f382974abcfca177">krpc_vector_set</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *v, <a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *o, int index)</td></tr>
<tr class="separator:gaf08956a35d983893f382974abcfca177"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga02d5eeffe865f129911f42ffbfa0d119"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#ga02d5eeffe865f129911f42ffbfa0d119">krpc_vector_clear</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *v)</td></tr>
<tr class="separator:ga02d5eeffe865f129911f42ffbfa0d119"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga252615bf3ff115656c3c155a7c9fafaf"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#ga252615bf3ff115656c3c155a7c9fafaf">krpc_map_insert</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *m, <a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *k, <a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *v)</td></tr>
<tr class="separator:ga252615bf3ff115656c3c155a7c9fafaf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gace78d56aa68df141f3cfa90ecf012b81"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#gace78d56aa68df141f3cfa90ecf012b81">krpc_map_update</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *m, <a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *k, <a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *v)</td></tr>
<tr class="separator:gace78d56aa68df141f3cfa90ecf012b81"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga87ce3d17030c66e3264fa2e026bfaf33"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#ga87ce3d17030c66e3264fa2e026bfaf33">krpc_map_get</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *m, <a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *k)</td></tr>
<tr class="separator:ga87ce3d17030c66e3264fa2e026bfaf33"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad760f8fec813dab474ac011d7aab1e7e"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#gad760f8fec813dab474ac011d7aab1e7e">krpc_map_get_size</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *m)</td></tr>
<tr class="separator:gad760f8fec813dab474ac011d7aab1e7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad894af3d72e3ae9629ebd724534dae7f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#gad894af3d72e3ae9629ebd724534dae7f">krpc_map_get_first</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *m, <a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> **k, <a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> **v)</td></tr>
<tr class="separator:gad894af3d72e3ae9629ebd724534dae7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa818187b224d2ec13b5b1a25badc3fe3"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#gaa818187b224d2ec13b5b1a25badc3fe3">krpc_map_next</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *m, <a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> **k, <a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> **v)</td></tr>
<tr class="separator:gaa818187b224d2ec13b5b1a25badc3fe3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga76c5ca67a568d6e6634a57c3be742b2c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__rpc.html#ga76c5ca67a568d6e6634a57c3be742b2c">krpc_map_clear</a> (<a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *m)</td></tr>
<tr class="separator:ga76c5ca67a568d6e6634a57c3be742b2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<pre>
轻量级RPC框架</pre><pre>krpc_object_t作为一个泛型的对象抽象接口，可以作为对象系统内任何类型的对象存在，
在设置方法调用后会确定对象的类型，但一旦确定是不能更改，krpc_object_t提供了统一的
接口来进行marshal/unmarshal(列集/散集)操作：</pre><pre>1. krpc_object_marshal          marshal并发送到管道流
2. krpc_object_marshal_buffer   marshal到缓冲区
3. krpc_object_unmarshal        从管道流接收并unmarshal
4. krpc_object_unmarshal_buffer 从缓冲区unmarshal</pre><pre>以上两类方法实现了从数据流到对象及对象到数据流的操作，作为RPC框架的基础.</pre><pre>对象类型系统包含如下类型：</pre><pre>1. 数字       整数，浮点数
2. 字符串     字符串
3. 数组(向量) 数组类容器
4. 表(字典)   字典类容器</pre><pre>操作以上类型的方法都明确的使用了前缀：</pre><pre>1. krpc_number_ 数字
2. krpc_string_ 字符串
3. krpc_vector_ 数组
4. krpc_map_    表</pre><pre>容器类对象(数组，表)内可以容纳其他任意类型的对象(包含和自己相同类型对象),
一旦使用set类或clear类方法后，对象的类型就确定，譬如：调用krpc_set_number_i8
后， 对象的类型为数字，8位有符号整数. 类型操作函数没有提供非常丰富的方法来操作对象，
因为整套框架本身是用于RPC并非通用的容器库，使用的定位与传统的容器库有本质的不同.</pre><pre></pre> <h2 class="groupheader">函数说明</h2>
<a class="anchor" id="ga76c5ca67a568d6e6634a57c3be742b2c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void krpc_map_clear </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>m</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>清空表 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">m</td><td>krpc_object_t实例 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga87ce3d17030c66e3264fa2e026bfaf33"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a>* krpc_map_get </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>m</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>k</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>查找 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">m</td><td>krpc_object_t实例 </td></tr>
    <tr><td class="paramname">k</td><td>key </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">krpc_object_t实例</td><td></td></tr>
    <tr><td class="paramname">0</td><td>未找到 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gad894af3d72e3ae9629ebd724534dae7f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int krpc_map_get_first </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>m</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> **&#160;</td>
          <td class="paramname"><em>k</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> **&#160;</td>
          <td class="paramname"><em>v</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>重置遍历器并取第一个&lt;key, value&gt; </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">m</td><td>krpc_object_t实例 </td></tr>
    <tr><td class="paramname">k</td><td>key </td></tr>
    <tr><td class="paramname">v</td><td>value </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">0</td><td>没有 </td></tr>
    <tr><td class="paramname">非零</td><td>有 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gad760f8fec813dab474ac011d7aab1e7e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t krpc_map_get_size </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>m</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>取得表&lt;kev, value&gt;个数 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">m</td><td>krpc_object_t实例 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>&lt;kev, value&gt;个数 </dd></dl>

</div>
</div>
<a class="anchor" id="ga252615bf3ff115656c3c155a7c9fafaf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int krpc_map_insert </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>m</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>k</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>v</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>添加&lt;k, v&gt; </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">m</td><td>krpc_object_t实例 </td></tr>
    <tr><td class="paramname">k</td><td>key </td></tr>
    <tr><td class="paramname">v</td><td>value </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">error_ok</td><td>成功 </td></tr>
    <tr><td class="paramname">其他</td><td>失败 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaa818187b224d2ec13b5b1a25badc3fe3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int krpc_map_next </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>m</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> **&#160;</td>
          <td class="paramname"><em>k</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> **&#160;</td>
          <td class="paramname"><em>v</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>取下一个未遍历的&lt;key, value&gt; </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">m</td><td>krpc_object_t实例 </td></tr>
    <tr><td class="paramname">k</td><td>key </td></tr>
    <tr><td class="paramname">v</td><td>value </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">0</td><td>没有 </td></tr>
    <tr><td class="paramname">非零</td><td>有 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gace78d56aa68df141f3cfa90ecf012b81"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int krpc_map_update </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>m</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>k</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>v</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>更新&lt;k, v&gt;，如果k不存在则插入 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">m</td><td>krpc_object_t实例 </td></tr>
    <tr><td class="paramname">k</td><td>key </td></tr>
    <tr><td class="paramname">v</td><td>value </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">error_ok</td><td>成功 </td></tr>
    <tr><td class="paramname">其他</td><td>失败 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaa646cc26fc434789e5d4a58ec39a99fa"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float32_t krpc_number_get_f32 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>o</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取浮点数32位 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">o</td><td>krpc_object_t实例 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>浮点数32位 </dd></dl>

</div>
</div>
<a class="anchor" id="ga000db715b85193d0b6750b46bfc590b5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float64_t krpc_number_get_f64 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>o</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取浮点数64位 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">o</td><td>krpc_object_t实例 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>浮点数64位 </dd></dl>

</div>
</div>
<a class="anchor" id="ga090dd58301d21979a05fe6fc249e3a80"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int16_t krpc_number_get_i16 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>o</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取有符号16位 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">o</td><td>krpc_object_t实例 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>有符号16位 </dd></dl>

</div>
</div>
<a class="anchor" id="gad287178bafa8b9495016ee747db8e090"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32_t krpc_number_get_i32 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>o</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取有符号32位 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">o</td><td>krpc_object_t实例 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>有符号32位 </dd></dl>

</div>
</div>
<a class="anchor" id="ga41bb57b2a053c9aeb22c98e0cbfbc2e4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int64_t krpc_number_get_i64 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>o</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取有符号64位 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">o</td><td>krpc_object_t实例 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>有符号64位 </dd></dl>

</div>
</div>
<a class="anchor" id="ga5f14e2a44d3dd64fc1bc54e28b431587"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int8_t krpc_number_get_i8 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>o</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取有符号8位 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">o</td><td>krpc_object_t实例 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>有符号8位 </dd></dl>

</div>
</div>
<a class="anchor" id="gaa2f3b1c450f36d181e585924ff7954a5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t krpc_number_get_ui16 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>o</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取无符号16位 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">o</td><td>krpc_object_t实例 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>无符号16位 </dd></dl>

</div>
</div>
<a class="anchor" id="gabc1d9560a6f2baf606c4a232488ee76a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t krpc_number_get_ui32 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>o</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取无符号32位 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">o</td><td>krpc_object_t实例 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>无符号32位 </dd></dl>

</div>
</div>
<a class="anchor" id="ga951b99916dd94a6d8c5ad335578c35d7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t krpc_number_get_ui64 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>o</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取无符号64位 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">o</td><td>krpc_object_t实例 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>无符号64位 </dd></dl>

</div>
</div>
<a class="anchor" id="ga921ba1649bda27068e3d048b854ed708"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t krpc_number_get_ui8 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>o</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取无符号8位 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">o</td><td>krpc_object_t实例 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>无符号8位 </dd></dl>

</div>
</div>
<a class="anchor" id="ga0e16d4b0c82cb88b148e82bc076a840c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void krpc_number_set_f32 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float32_t&#160;</td>
          <td class="paramname"><em>f32</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置数字 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">o</td><td>krpc_object_t实例 </td></tr>
    <tr><td class="paramname">f32</td><td>浮点数32位 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga8aeb77dbdf5aaab4bb75f57ee0ddd8b9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void krpc_number_set_f64 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float64_t&#160;</td>
          <td class="paramname"><em>f64</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置数字 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">o</td><td>krpc_object_t实例 </td></tr>
    <tr><td class="paramname">f64</td><td>浮点数64位 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga1b6cbaa51e2171bec6e5b2f97fe6223c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void krpc_number_set_i16 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int16_t&#160;</td>
          <td class="paramname"><em>i16</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置数字 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">o</td><td>krpc_object_t实例 </td></tr>
    <tr><td class="paramname">i16</td><td>有符号16位 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaf70d32f6fb59d76e67e596d0feeee14b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void krpc_number_set_i32 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>i32</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置数字 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">o</td><td>krpc_object_t实例 </td></tr>
    <tr><td class="paramname">i32</td><td>有符号32位 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gabf92e2dab46131d75789812059214724"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void krpc_number_set_i64 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int64_t&#160;</td>
          <td class="paramname"><em>i64</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置数字 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">o</td><td>krpc_object_t实例 </td></tr>
    <tr><td class="paramname">i64</td><td>有符号64位 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gac97afef390289879f19cda9149beb684"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void krpc_number_set_i8 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int8_t&#160;</td>
          <td class="paramname"><em>i8</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置数字 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">o</td><td>krpc_object_t实例 </td></tr>
    <tr><td class="paramname">i8</td><td>有符号8位 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga7990cb68203c5ab0d1534ef616fd1aad"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void krpc_number_set_ui16 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>ui16</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置数字 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">o</td><td>krpc_object_t实例 </td></tr>
    <tr><td class="paramname">ui16</td><td>无符号16位 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaf864070d7b20a77c9191acbe49f9382f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void krpc_number_set_ui32 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>ui32</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置数字 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">o</td><td>krpc_object_t实例 </td></tr>
    <tr><td class="paramname">ui32</td><td>无符号32位 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gafd0da43f7cb46188c6d2f1657b39c3ba"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void krpc_number_set_ui64 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int64_t&#160;</td>
          <td class="paramname"><em>ui64</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置数字 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">o</td><td>krpc_object_t实例 </td></tr>
    <tr><td class="paramname">ui64</td><td>无符号64位 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga0abbc84b15e73781209485cbfa4d2a56"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void krpc_number_set_ui8 </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>ui8</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置数字 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">o</td><td>krpc_object_t实例 </td></tr>
    <tr><td class="paramname">ui8</td><td>无符号8位 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga207aac182f9f86e96ddea230ee9c8f61"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int krpc_object_check_type </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">krpc_type_e&#160;</td>
          <td class="paramname"><em>type</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>测试RPC对象类型 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">o</td><td>krpc_object_t实例 </td></tr>
    <tr><td class="paramname">type</td><td>类型 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">0</td><td>不是type类型 </td></tr>
    <tr><td class="paramname">非零</td><td>是type类型 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga6aad58d8460944596e39822181bf4848"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a>* krpc_object_create </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>所有set类方法调用时确定krpc_object_t实际类型，类型一旦确定不能再次更改 建立RPC对象 </p><dl class="section return"><dt>返回</dt><dd>krpc_object_t实例 </dd></dl>

</div>
</div>
<a class="anchor" id="ga8bb578f8ba5a8de682a1fe2a4c8a20f6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void krpc_object_destroy </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>o</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>销毁RPC对象 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">o</td><td>krpc_object_t实例 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gad51ebf7392be0ee1fd9597aa22a43015"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t krpc_object_get_marshal_size </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>o</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>取得序列化后的长度 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">o</td><td>krpc_object_t实例 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>取得序列化后的长度 </dd></dl>

</div>
</div>
<a class="anchor" id="ga88e197e67ba6e7dc4b6fa361db77376b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int krpc_object_marshal </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct__stream__t.html">stream_t</a> *&#160;</td>
          <td class="paramname"><em>stream</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>bytes</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>序列化到数据流 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">o</td><td>krpc_object_t实例 </td></tr>
    <tr><td class="paramname">stream</td><td>stream_t实例 </td></tr>
    <tr><td class="paramname">bytes</td><td>写入流的数据字节数 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">error_ok</td><td>成功 </td></tr>
    <tr><td class="paramname">其他</td><td>失败 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga32ed12c4faa68e258582b239b46fd180"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int krpc_object_marshal_buffer </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>bytes</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>序列化到缓冲区 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">o</td><td>krpc_object_t实例 </td></tr>
    <tr><td class="paramname">buffer</td><td>缓冲区指针 </td></tr>
    <tr><td class="paramname">length</td><td>缓冲区长度 </td></tr>
    <tr><td class="paramname">bytes</td><td>写入缓冲区的数据字节数 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">error_ok</td><td>成功 </td></tr>
    <tr><td class="paramname">其他</td><td>失败 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaff1ec30de69047da0315283957d877ca"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int krpc_object_unmarshal </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__stream__t.html">stream_t</a> *&#160;</td>
          <td class="paramname"><em>stream</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> **&#160;</td>
          <td class="paramname"><em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>bytes</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>从数据流反序列化对象 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">stream</td><td>stream_t实例 </td></tr>
    <tr><td class="paramname">o</td><td>存储得到的对象指针 </td></tr>
    <tr><td class="paramname">bytes</td><td>读取的流数据字节数 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">error_ok</td><td>成功 </td></tr>
    <tr><td class="paramname">其他</td><td>失败 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga0f2289e356949bc9ae0e8e0a151e42f4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int krpc_object_unmarshal_buffer </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> **&#160;</td>
          <td class="paramname"><em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>bytes</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>从缓冲区反序列化对象 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">buffer</td><td>缓冲区指针 </td></tr>
    <tr><td class="paramname">size</td><td>缓冲区长度 </td></tr>
    <tr><td class="paramname">o</td><td>存储得到的对象指针 </td></tr>
    <tr><td class="paramname">bytes</td><td>消耗的字节数 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">error_ok</td><td>成功 </td></tr>
    <tr><td class="paramname">其他</td><td>失败 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga4cbbacb71688aa9ee2c5811076132bce"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* krpc_string_get </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>o</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取字符串指针 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">o</td><td>krpc_object_t实例 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>字符串指针 </dd></dl>

</div>
</div>
<a class="anchor" id="ga1de7973df219a3f8d3f466d27ba8c080"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t krpc_string_get_size </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>o</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取字符串长度，包含结尾符 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">o</td><td>krpc_object_t实例 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>字符串长度 </dd></dl>

</div>
</div>
<a class="anchor" id="ga6985230e52d14d9e6d1f0de75a7c2f93"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void krpc_string_set </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>s</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置字符串 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">o</td><td>krpc_object_t实例 </td></tr>
    <tr><td class="paramname">s</td><td>字符串指针 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga478faec6f30727235d29aaeb8d54f22f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void krpc_string_set_s </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置字符串 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">o</td><td>krpc_object_t实例 </td></tr>
    <tr><td class="paramname">size</td><td>字符串长度，包含结尾符 </td></tr>
    <tr><td class="paramname">s</td><td>字符串指针 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga02d5eeffe865f129911f42ffbfa0d119"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void krpc_vector_clear </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>v</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>清空数组 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">v</td><td>krpc_object_t实例 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga0291a0548378269354fc614712f4c31e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a>* krpc_vector_get </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>v</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>按索引取得数组元素 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">v</td><td>krpc_object_t实例 </td></tr>
    <tr><td class="paramname">index</td><td>下标索引 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>数组元素 </dd></dl>

</div>
</div>
<a class="anchor" id="gac86bb807e52193aaa69ce6fe36cd59c8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t krpc_vector_get_size </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>v</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>取得数组元素个数 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">v</td><td>krpc_object_t实例 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>数组元素个数 </dd></dl>

</div>
</div>
<a class="anchor" id="gac870fa910b5e155c9f566ead4fac2b54"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int krpc_vector_push_back </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>v</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>o</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>添加到数组尾，数组默认长度为8，每次递增8 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">v</td><td>krpc_object_t实例 </td></tr>
    <tr><td class="paramname">o</td><td>新增的数组元素 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">error_ok</td><td>成功 </td></tr>
    <tr><td class="paramname">其他</td><td>失败 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaf08956a35d983893f382974abcfca177"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int krpc_vector_set </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>v</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct__krpc__object__t.html">krpc_object_t</a> *&#160;</td>
          <td class="paramname"><em>o</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>按索引设置数组元素，若已存在元素则销毁旧元素 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">v</td><td>krpc_object_t实例 </td></tr>
    <tr><td class="paramname">o</td><td>新元素 </td></tr>
    <tr><td class="paramname">index</td><td>下标索引 </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">error_ok</td><td>成功 </td></tr>
    <tr><td class="paramname">其他</td><td>失败 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2015年 七月 9日 星期四 14:59:53 , 为 knet使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
